package com.work.dto.main;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * 退关台账搜索
 *
 * @author ：dujianyu
 * @since ：Created in 2024/5/27 15:37
 */
@Data
public class RetreatSetSearchDTO {

    /** ID */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "主键ID",notes = "")
    private Long  id ;

    /** 货运船ID */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "货运船ID",notes = "")
    private Long  transportShipId ;

    /** 退关垛ID */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "退关垛ID",notes = "")
    private Long  retreatStorageId ;

    /** 货运舱单ID */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "货运舱单ID",notes = "")
    private Long  transportBillId ;

    /** 理货日期 */
    @JsonSerialize(using = ToStringSerializer.class)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(name = "理货日期",notes = "")
    private LocalDate tallyDate ;

    /** 时间段（班组） */
    @ApiModelProperty(name = "时间段（班组）",notes = "")
    private String timeSpace ;

    /** 是否按账号筛选 */
    @ApiModelProperty(name = "是否按账号筛选",notes = "")
    private String personal ;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "创建人",notes = "")
    private Long  createUser ;

}
